
// 用户管理API
import service from "../../../libs/request";

export function UserList(data) {
    return service.request({
        url:"/admin/auth/adminuser/index",
        method:"get",
        params:data
    });
}

export function CreateUser(data) {
    return service.request({
        url:"/admin/auth/adminuser/create",
        method:"post",
        data:data
    });
}

export function DeleteUser(data) {
    return service.request({
        url:"/admin/auth/adminuser/delete",
        method:"get",
        params:data
    });
}

export function ResetPassword(data) {
    return service.request({
        url:"/admin/auth/adminuser/reset-password",
        method:"post",
        data:data
    });
}

export function BanUser(data) {
    return service.request({
        url:"/admin/auth/adminuser/ban",
        method:"post",
        data:data
    });
}

export function Roles(data) {
    return service.request({
        url:"/admin/auth/adminuser/roles",
        method:"post",
        data:data
    })
}

export function Assignment(data) {
    return service.request({
        url:"/admin/auth/adminuser/assignment",
        method:"post",
        data:data
    })
}
